<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>FreeMarker函数function</title>
</head>
<body style="margin-left: 50px;">
    <h2>function：函数</h2>
    <ul>
        <#function doAdd param1 param2>
            <#return param1 + param2>
        </#function>
        <li>调用</li>
        <div>
            函数调用2+3=<font color="red">${doAdd(2,3)}</font>
        </div>
    </ul>
</body>
</html>